package wowraidmanager.client;

import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;

public class BaseComposite extends Composite{

    @UiField
    public HTML errorMessage;

    @UiField
    public HTML infoMessage;

    protected String errorString;

    protected String infoString;

    protected void clearErrorMessage(){
        errorMessage.setText("");
    }

    protected void clearInfoMessage(){
        infoMessage.setText("");
    }

    protected void setErrorMessage(String errorString){
        errorMessage.setHTML(errorString);
    }

    protected void setInfoMessage(String infoString){
        infoMessage.setHTML(infoString);
    }
}
